/**
 * Created by hanzhendong on 2016/11/29.
 */
import { Component } from '@angular/core';

import { NavController, NavParams } from 'ionic-angular';
import { ToastController } from 'ionic-angular';

@Component({
    selector: 'page-detail',
    templateUrl: 'detail.html'
})
export class DetailPage {
    Person: any

    constructor(public navCtrl: NavController, private params: NavParams, public toastCtrl: ToastController) {
        this.Person = params.get('chat');
    }

    showToast(position: string, mes: string) {
        let toast = this.toastCtrl.create({
            message: mes,
            duration: 2000,
            cssClass: 'zj-toast',
            position: position
        });

        toast.present(toast);
    }
}
